<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>登录注册</title>
{if $head_keywords}
<meta name="keywords" content="{$head_keywords}"/>
{/if}
{if $head_description}
<meta name="description" content="{$head_description}"/>
{/if}
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<meta name="generator" content="DESTOON B2B - www.destoon.com"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-title" content="{$site_name}"/>
<meta name="apple-mobile-web-app-status-bar-style" content="default"/>
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png"/>
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="128x128" href="apple-touch-icon-precomposed.png">
<meta name="msapplication-TileImage" content="apple-touch-icon-precomposed.png">
<meta name="msapplication-TileColor" content="#007AFF">
<link rel="shortcut icon" type="image/x-icon" href="{DT_PATH}favicon.ico"/>
<link rel="bookmark" type="image/x-icon" href="{DT_PATH}favicon.ico"/>
<link rel="stylesheet" type="text/css" href="static/lib/jquery/jquery.mobile.custom.structure.min.css"/>
<link rel="stylesheet" type="text/css" href="static/style.css"/>
{if $CSS}
{loop $CSS $css}
<link rel="stylesheet" type="text/css" href="static/{$css}.css"/>
{/loop}
{/if}
<script type="text/javascript" src="static/lib/jquery/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
$(document).bind("mobileinit", function() {
　　{if $EXT[mobile_ajax]}
	$.mobile.defaultPageTransition = 'slide';
	{else}
	$.mobile.ajaxEnabled = false;
	{/if}
});
var AJPath = 'ajax.php';
var Dbrowser = '{$DT_MOB[browser]}';
</script>
<script type="text/javascript" src="static/lib/jquery/jquery.mobile.custom.min.js"></script>
<script type="text/javascript" src="static/js/common.js"></script>
{if $JS}
{loop $JS $js}
<script type="text/javascript" src="static/{$js}.js"></script>
{/loop}
{/if}
<script type="text/javascript" src="static/js/fix.js"></script>
</head>
<body>
<div data-role="page">
<div class="ui-toast"></div>
<div class="ui-mask"></div>
<div class="ui-sheet"></div>
{if $share_icon && $share_icon != 'auto'}<div class="share_icon"><img src="{$share_icon}"/></div>{/if}
<div id="login_bg">
<div id="head-bar-login">
<div class="head-bar-login">
<div class="head-bar-login-title"><img src="static/img/mobile-logo.png" /><h3>合信招标</h3></div>
</div>
<div class="head-bar-login-fix"></div>
</div>

<div class="main login_bg">
	<div style="padding:36px 24px 24px 24px;">
	<form action="login.php" method="post" id="form-login">
	<input type="hidden" name="forward" value="{$forward}"/>
	<input type="hidden" name="auth" value="{$auth}"/>
	<input type="hidden" name="ok" value="1"/>

	<div style="width:100%;height:52px; border-bottom:0px; border-radius:3px 3px 0 0;" class="bd-b-login"><input type="text" name="username" id="login-username" value="{$username}" placeholder="用户名" onblur="window.scrollTo(0,0);" /></div>

	<div style="width:100%;height:52px; border-radius:0 0 3px 3px;" class="bd-b-login"><input type="password" name="password" id="login-password" placeholder="请填写密码" onblur="window.scrollTo(0,0);"/></div>

	{if $MOD[captcha_login]}
	<div style="width:100%;height:44px;font-size:16px;" class="bd-b">{template 'captcha', 'chip'}</div>
	{/if}
	<div class="wjmm">
		<p class="login_wjmm">找回密码？</p>
		<p class="login_lxdh"><a href="tel:4000008568">400-000-8568</a></p>
	</div>
	<div style="padding:16px 0;" onclick="Dlogin();">
		<div class="btn-blue">登　录</div>
	</div>
	</form>
	<div class="hmyzh clearfix">
		<font>还没有账号？</font>
		<a href="/mobile/register.php"><span>注册>></span></a>
	</div>
	</div>
</div>
</div>
<!--

<div class="list-set">
<ul>
<li><div style="border:none;"><a href="forgot.php">忘记了密码？</a></div></li>

{if $oa}
{loop $OAUTH $k $v}
{if $v[enable]}<li><div><a href="{DT_PATH}api/oauth/{$k}/connect.php" rel="external"><img src="{DT_PATH}api/oauth/{$k}/ico.png" alt="{$v[name]}"/> 用{$v[name]}帐号登录</a></div></li>{/if}
{/loop}
{/if}

</ul>

</div>
-->


<script type="text/javascript">
function Dlogin() {
	if(Dd('login-username').value.length < 3) {
		Dtoast('请填写用户名');
		return false;
	}
	if(Dd('login-password').value.length < 5) {
		Dtoast('请填写密码');
		return false;
	}
	{if $MOD[captcha_login]}
	if(!is_captcha(Dd('captcha').value)) {
		Dtoast('请填写验证码');
		return false;
	}
	{/if}
	Dd('form-login').submit();
}
$(document).on('pageinit', function(event) {
	{if $MOD[captcha_login]}
	$('#captcha').css({'width':'100px','border':'none','padding':'0','font-size':'16px'});
	showcaptcha();
	{/if}
	$('#login-username').bind('keyup blur', function() {
		$(this).val(DTrim($(this).val()));
	});
});
$(function(){
	$('.login_wjmm').click(function(e){	
		e.stopPropagation();
		if($(".login_lxdh").css("display")=="none"){
			$(".login_lxdh").show();
		}else{
			$(".login_lxdh").hide();
			}
	});
	$(document).click(function(){		
		if($(".login_lxdh").css("display")=="block"){
			$(".login_lxdh").hide();
		}
	});
});
</script>
<script type="text/javascript">
window.onload=function(){
    map_height=document.documentElement.clientHeight;
    document.getElementById("login_bg").style.height=map_height+"px";   
}
</script>
<!-- {template 'footer', 'mobile'} -->